package com.threeti.mecool.legacy.domain.model.acl;

import java.util.ArrayList;
import java.util.List;

public class OrgnizationEmployeeLegacyTreeAdapter extends OrgnizationEmployeeLegacy {
    private OrgnizationEmployeeLegacy adaptee;

    public OrgnizationEmployeeLegacyTreeAdapter(OrgnizationEmployeeLegacy adaptee) {
        this.adaptee = adaptee;
    }

    public static List<OrgnizationEmployeeLegacyTreeAdapter> adapt(List<OrgnizationEmployeeLegacy> list) {
        List<OrgnizationEmployeeLegacyTreeAdapter> resultList = new ArrayList<OrgnizationEmployeeLegacyTreeAdapter>(list.size());
        for (OrgnizationEmployeeLegacy item : list) {
            resultList.add(new OrgnizationEmployeeLegacyTreeAdapter(item));
        }
        return resultList;
    }

    public Long getId() {
        return adaptee.getEmpId();
    }

    public Long getParentId() {
        return adaptee.getParentId();
    }

    public String getName() {
        return adaptee.getName();
    }

    public String getOrgCode() {
        return adaptee.getOrgCode();
    }

    public Long getEmpId() {
        return adaptee.getEmpId();
    }

    public void setName(String name) {
        adaptee.setName(name);
    }

    @Override
    public String toString() {
        return adaptee.toString();
    }

}
